﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MNCdataDataSet" targetNamespace="http://tempuri.org/MNCdataDataSet.xsd" xmlns:mstns="http://tempuri.org/MNCdataDataSet.xsd" xmlns="http://tempuri.org/MNCdataDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="MNCdataConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MNCdataConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.MeasNetClient.Properties.Settings.GlobalReference.Default.MNCdataConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ScanBandTableAdapter" GeneratorDataComponentClassName="ScanBandTableAdapter" Name="ScanBand" UserDataComponentName="ScanBandTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="MNCdataConnectionString (Settings)" DbObjectName="dbo.ScanBand" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[ScanBand] WHERE (([Id] = @Original_Id) AND ([Name] = @Original_Name) AND ([FreqStart] = @Original_FreqStart) AND ([FreqStop] = @Original_FreqStop))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_FreqStart" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="FreqStart" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_FreqStop" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="FreqStop" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[ScanBand] ([Id], [Name], [FreqStart], [FreqStop], [Designation]) VALUES (@Id, @Name, @FreqStart, @FreqStop, @Designation);
SELECT Id, Name, FreqStart, FreqStop, Designation FROM ScanBand WHERE (Id = @Id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@FreqStart" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="FreqStart" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@FreqStop" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="FreqStop" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Designation" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Designation" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Id, Name, FreqStart, FreqStop, Designation FROM dbo.ScanBand</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[ScanBand] SET [Id] = @Id, [Name] = @Name, [FreqStart] = @FreqStart, [FreqStop] = @FreqStop, [Designation] = @Designation WHERE (([Id] = @Original_Id) AND ([Name] = @Original_Name) AND ([FreqStart] = @Original_FreqStart) AND ([FreqStop] = @Original_FreqStop));
SELECT Id, Name, FreqStart, FreqStop, Designation FROM ScanBand WHERE (Id = @Id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@FreqStart" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="FreqStart" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@FreqStop" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="FreqStop" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Designation" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="Designation" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_FreqStart" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="FreqStart" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_FreqStop" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="FreqStop" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Id" DataSetColumn="Id" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
              <Mapping SourceColumn="FreqStart" DataSetColumn="FreqStart" />
              <Mapping SourceColumn="FreqStop" DataSetColumn="FreqStop" />
              <Mapping SourceColumn="Designation" DataSetColumn="Designation" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="MNCdataConnectionString (Settings)" DbObjectName="dbo.ScanBand" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillById" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataById" GeneratorSourceName="FillById" GetMethodModifier="Public" GetMethodName="GetDataById" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataById" UserSourceName="FillById">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT Id, Name, FreqStart, FreqStop, Designation FROM dbo.ScanBand WHERE Id = @Id</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="[C:\USERS\SLAVEN\SOURCE\WORKSPACES\KON-RAD\MEASNET\MNC-PLAYGROUND\MEASNETCLIENT_PLAYGROUND\MEASNETCLIENT\MNCDATA.MDF].dbo.ScanBand" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="StationTableAdapter" GeneratorDataComponentClassName="StationTableAdapter" Name="Station" UserDataComponentName="StationTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="MNCdataConnectionString (Settings)" DbObjectName="dbo.Station" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Station] WHERE (([Id] = @Original_Id) AND ([Name] = @Original_Name) AND ([Fqdn] = @Original_Fqdn) AND ([Port] = @Original_Port) AND ([User] = @Original_User) AND ([Password] = @Original_Password) AND ((@IsNull_Longitude = 1 AND [Longitude] IS NULL) OR ([Longitude] = @Original_Longitude)) AND ((@IsNull_Latitude = 1 AND [Latitude] IS NULL) OR ([Latitude] = @Original_Latitude)) AND ((@IsNull_Media_port = 1 AND [Media_port] IS NULL) OR ([Media_port] = @Original_Media_port)) AND ((@IsNull_Default_rf_gain = 1 AND [Default_rf_gain] IS NULL) OR ([Default_rf_gain] = @Original_Default_rf_gain)) AND ((@IsNull_Ppm = 1 AND [Ppm] IS NULL) OR ([Ppm] = @Original_Ppm)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Fqdn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fqdn" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Port" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Port" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_User" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Longitude" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Longitude" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Longitude" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Longitude" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Latitude" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Latitude" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Latitude" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Latitude" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Media_port" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Media_port" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Media_port" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Media_port" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Default_rf_gain" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Default_rf_gain" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Default_rf_gain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Default_rf_gain" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Ppm" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Ppm" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Ppm" Precision="5" ProviderType="Decimal" Scale="3" Size="0" SourceColumn="Ppm" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Station] ([Id], [Name], [Fqdn], [Port], [User], [Password], [Longitude], [Latitude], [Media_port], [Default_rf_gain], [Ppm]) VALUES (@Id, @Name, @Fqdn, @Port, @User, @Password, @Longitude, @Latitude, @Media_port, @Default_rf_gain, @Ppm);
SELECT Id, Name, Fqdn, Port, [User], Password, Longitude, Latitude, Media_port, Default_rf_gain, Ppm FROM Station WHERE (Id = @Id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Fqdn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fqdn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Port" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Port" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@User" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Longitude" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Longitude" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Latitude" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Latitude" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Media_port" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Media_port" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Default_rf_gain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Default_rf_gain" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Ppm" Precision="5" ProviderType="Decimal" Scale="3" Size="0" SourceColumn="Ppm" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT Id, Name, Fqdn, Port, [User], Password, Longitude, Latitude, Media_port, Default_rf_gain, Ppm FROM Station</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Station] SET [Id] = @Id, [Name] = @Name, [Fqdn] = @Fqdn, [Port] = @Port, [User] = @User, [Password] = @Password, [Longitude] = @Longitude, [Latitude] = @Latitude, [Media_port] = @Media_port, [Default_rf_gain] = @Default_rf_gain, [Ppm] = @Ppm WHERE (([Id] = @Original_Id) AND ([Name] = @Original_Name) AND ([Fqdn] = @Original_Fqdn) AND ([Port] = @Original_Port) AND ([User] = @Original_User) AND ([Password] = @Original_Password) AND ((@IsNull_Longitude = 1 AND [Longitude] IS NULL) OR ([Longitude] = @Original_Longitude)) AND ((@IsNull_Latitude = 1 AND [Latitude] IS NULL) OR ([Latitude] = @Original_Latitude)) AND ((@IsNull_Media_port = 1 AND [Media_port] IS NULL) OR ([Media_port] = @Original_Media_port)) AND ((@IsNull_Default_rf_gain = 1 AND [Default_rf_gain] IS NULL) OR ([Default_rf_gain] = @Original_Default_rf_gain)) AND ((@IsNull_Ppm = 1 AND [Ppm] IS NULL) OR ([Ppm] = @Original_Ppm)));
SELECT Id, Name, Fqdn, Port, [User], Password, Longitude, Latitude, Media_port, Default_rf_gain, Ppm FROM Station WHERE (Id = @Id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Fqdn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fqdn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Port" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Port" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@User" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Longitude" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Longitude" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Latitude" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Latitude" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Media_port" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Media_port" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Default_rf_gain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Default_rf_gain" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Ppm" Precision="5" ProviderType="Decimal" Scale="3" Size="0" SourceColumn="Ppm" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Fqdn" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fqdn" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Port" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Port" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_User" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Password" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Password" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Longitude" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Longitude" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Longitude" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Longitude" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Latitude" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Latitude" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Latitude" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Latitude" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Media_port" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Media_port" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Media_port" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Media_port" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Default_rf_gain" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Default_rf_gain" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Default_rf_gain" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Default_rf_gain" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Ppm" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Ppm" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Ppm" Precision="5" ProviderType="Decimal" Scale="3" Size="0" SourceColumn="Ppm" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Id" DataSetColumn="Id" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
              <Mapping SourceColumn="Fqdn" DataSetColumn="Fqdn" />
              <Mapping SourceColumn="Port" DataSetColumn="Port" />
              <Mapping SourceColumn="User" DataSetColumn="User" />
              <Mapping SourceColumn="Password" DataSetColumn="Password" />
              <Mapping SourceColumn="Longitude" DataSetColumn="Longitude" />
              <Mapping SourceColumn="Latitude" DataSetColumn="Latitude" />
              <Mapping SourceColumn="Media_port" DataSetColumn="Media_port" />
              <Mapping SourceColumn="Default_rf_gain" DataSetColumn="Default_rf_gain" />
              <Mapping SourceColumn="Ppm" DataSetColumn="Ppm" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="MNCdataConnectionString (Settings)" DbObjectName="dbo.Station" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillById" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataById" GeneratorSourceName="FillById" GetMethodModifier="Public" GetMethodName="GetDataById" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataById" UserSourceName="FillById">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT Default_rf_gain, Fqdn, Id, Latitude, Longitude, Media_port, Name, Password, Port, Ppm, [User] FROM Station WHERE (Id = @Id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="[C:\USERS\CRAUSER\DOCUMENTS\VISUAL STUDIO 2013\PROJECTS\MEASNETCLIENT\MEASNETCLIENT\MNCDATA.MDF].dbo.Station" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="MNCdataConnectionString (Settings)" DbObjectName="dbo.Station" DbObjectType="Table" GenerateShortCommands="true" GeneratorSourceName="FillByID_Ppm" Modifier="Public" Name="FillByID_Ppm" QueryType="Scalar" ScalarCallRetval="System.Decimal, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillByID_Ppm">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT Ppm FROM Station WHERE (Id = @Id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="[C:\USERS\SLAVEN\DOCUMENTS\VISUAL STUDIO 2013\PROJECTS\MNC-NG-BRANCH\MEASNETCLIENT_NG\MEASNETCLIENT_NG\MNCDATA.MDF].dbo.Station" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="MNCdataConnectionString (Settings)" DbObjectName="dbo.Station" DbObjectType="Table" GenerateShortCommands="true" GeneratorSourceName="FillByID_RFgain" Modifier="Public" Name="FillByID_RFgain" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="FillByID_RFgain">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT Default_rf_gain FROM Station WHERE (Id = @Id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="[C:\USERS\CRAUSER\DOCUMENTS\VISUAL STUDIO 2013\PROJECTS\MEASNETCLIENT\MEASNETCLIENT\MNCDATA.MDF].dbo.Station" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="MNCdataDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="MNCdataDataSet" msprop:Generator_UserDSName="MNCdataDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ScanBand" msprop:Generator_TableClassName="ScanBandDataTable" msprop:Generator_TableVarName="tableScanBand" msprop:Generator_RowChangedName="ScanBandRowChanged" msprop:Generator_TablePropName="ScanBand" msprop:Generator_RowDeletingName="ScanBandRowDeleting" msprop:Generator_RowChangingName="ScanBandRowChanging" msprop:Generator_RowEvHandlerName="ScanBandRowChangeEventHandler" msprop:Generator_RowDeletedName="ScanBandRowDeleted" msprop:Generator_RowClassName="ScanBandRow" msprop:Generator_UserTableName="ScanBand" msprop:Generator_RowEvArgName="ScanBandRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Id" msdata:AutoIncrement="true" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_UserColumnName="Id" type="xs:int" />
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FreqStart" msprop:Generator_ColumnVarNameInTable="columnFreqStart" msprop:Generator_ColumnPropNameInRow="FreqStart" msprop:Generator_ColumnPropNameInTable="FreqStartColumn" msprop:Generator_UserColumnName="FreqStart" type="xs:long" />
              <xs:element name="FreqStop" msprop:Generator_ColumnVarNameInTable="columnFreqStop" msprop:Generator_ColumnPropNameInRow="FreqStop" msprop:Generator_ColumnPropNameInTable="FreqStopColumn" msprop:Generator_UserColumnName="FreqStop" type="xs:long" />
              <xs:element name="Designation" msprop:Generator_ColumnVarNameInTable="columnDesignation" msprop:Generator_ColumnPropNameInRow="Designation" msprop:Generator_ColumnPropNameInTable="DesignationColumn" msprop:Generator_UserColumnName="Designation" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1073741823" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Station" msprop:Generator_TableClassName="StationDataTable" msprop:Generator_TableVarName="tableStation" msprop:Generator_TablePropName="Station" msprop:Generator_RowDeletingName="StationRowDeleting" msprop:Generator_RowChangingName="StationRowChanging" msprop:Generator_RowEvHandlerName="StationRowChangeEventHandler" msprop:Generator_RowDeletedName="StationRowDeleted" msprop:Generator_UserTableName="Station" msprop:Generator_RowChangedName="StationRowChanged" msprop:Generator_RowEvArgName="StationRowChangeEvent" msprop:Generator_RowClassName="StationRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Id" msdata:AutoIncrement="true" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_UserColumnName="Id" type="xs:int" />
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Fqdn" msprop:Generator_ColumnVarNameInTable="columnFqdn" msprop:Generator_ColumnPropNameInRow="Fqdn" msprop:Generator_ColumnPropNameInTable="FqdnColumn" msprop:Generator_UserColumnName="Fqdn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Port" msprop:Generator_ColumnVarNameInTable="columnPort" msprop:Generator_ColumnPropNameInRow="Port" msprop:Generator_ColumnPropNameInTable="PortColumn" msprop:Generator_UserColumnName="Port" type="xs:long" />
              <xs:element name="User" msprop:Generator_ColumnVarNameInTable="columnUser" msprop:Generator_ColumnPropNameInRow="User" msprop:Generator_ColumnPropNameInTable="UserColumn" msprop:Generator_UserColumnName="User">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Password" msprop:Generator_ColumnVarNameInTable="columnPassword" msprop:Generator_ColumnPropNameInRow="Password" msprop:Generator_ColumnPropNameInTable="PasswordColumn" msprop:Generator_UserColumnName="Password">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Longitude" msprop:Generator_ColumnVarNameInTable="columnLongitude" msprop:Generator_ColumnPropNameInRow="Longitude" msprop:Generator_ColumnPropNameInTable="LongitudeColumn" msprop:Generator_UserColumnName="Longitude" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Latitude" msprop:Generator_ColumnVarNameInTable="columnLatitude" msprop:Generator_ColumnPropNameInRow="Latitude" msprop:Generator_ColumnPropNameInTable="LatitudeColumn" msprop:Generator_UserColumnName="Latitude" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Media_port" msprop:Generator_ColumnVarNameInTable="columnMedia_port" msprop:Generator_ColumnPropNameInRow="Media_port" msprop:Generator_ColumnPropNameInTable="Media_portColumn" msprop:Generator_UserColumnName="Media_port" type="xs:long" minOccurs="0" />
              <xs:element name="Default_rf_gain" msprop:Generator_ColumnVarNameInTable="columnDefault_rf_gain" msprop:Generator_ColumnPropNameInRow="Default_rf_gain" msprop:Generator_ColumnPropNameInTable="Default_rf_gainColumn" msprop:Generator_UserColumnName="Default_rf_gain" default="Automatic" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Ppm" msprop:Generator_ColumnVarNameInTable="columnPpm" msprop:Generator_ColumnPropNameInRow="Ppm" msprop:Generator_ColumnPropNameInTable="PpmColumn" msprop:Generator_UserColumnName="Ppm" type="xs:decimal" default="0" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ScanBand" />
      <xs:field xpath="mstns:Id" />
    </xs:unique>
    <xs:unique name="Constraint2">
      <xs:selector xpath=".//mstns:ScanBand" />
      <xs:field xpath="mstns:Name" />
    </xs:unique>
    <xs:unique name="Station_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Station" />
      <xs:field xpath="mstns:Id" />
    </xs:unique>
    <xs:unique name="Station_Constraint2" msdata:ConstraintName="Constraint2">
      <xs:selector xpath=".//mstns:Station" />
      <xs:field xpath="mstns:Name" />
    </xs:unique>
  </xs:element>
</xs:schema>